<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<html>

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>上海山宝破碎机-中国破碎机生产和破碎机出口基地</title>
  <META NAME="keywords" CONTENT="破碎机，颚式破碎机，锤式破碎机，碎石破碎机，圆锥破碎机反击式破碎机，振动筛，喂料机，振动给料机，洗砂机，采矿设备，矿山机械，矿山机器" />
  <meta name="description" content="上海建设路桥机械设备有限公司是上海破碎机专业生产厂家，其山宝牌商标被认定为中国驰名商标，公司主营圆锥破碎机、单段破碎机、烘干破碎机、颚式破碎机、反击式破碎机等" />
  <link rel="shortcut icon" href="${pageContext.request.contextPath}/statics/images/favicon.ico" type="image/x-icon" />
  <link rel="stylesheet" href="${pageContext.request.contextPath}/statics/fonts/iconfont/iconfont.css" />
  <!-- swiper -->
  <link rel="stylesheet" href="${pageContext.request.contextPath}/statics/localjs/swiper/swiper.min.css" />
  <link rel="stylesheet" href="${pageContext.request.contextPath}/statics/css/common.css" type="text/css" />
  <link rel="stylesheet" href="${pageContext.request.contextPath}/statics/css/mycart.css" type="text/css" />
</head>

<body>
  <!-- 头部 -->
  <header class="sb_header w980 clearfix">
    <a href="#" class="logo fl"><img src="${pageContext.request.contextPath}/statics/images/logo.jpg" alt="" /></a>
    <ul class="fl">
      <li><a href="${pageContext.request.contextPath}/newsShow">首页</a></li>
      <li><a href="${pageContext.request.contextPath}/threeProduct">商城</a></li>
      <li><a href="#">解决方案</a></li>
      <li><a href="${pageContext.request.contextPath}/showEnquiry">技术支持</a></li>
    </ul>
    <p id="index">
      <a class="iconfont icon-user"></a>
      <a href="${pageContext.request.contextPath}/car/addMyCard" class="iconfont icon-buy"></a>
    </p>
    <ul class="firstDown">
      <li><a href="${pageContext.request.contextPath}/myOrderByIdAdmin">我的订单</a></li>
      <li><a href="#">个人信息</a></li>
      <li><a href="#">登录</a></li>
    </ul>


  </header>


  <!-- 购物车 -->
  <div class="fonfirm">
    <h3>购物车信息</h3>
    <table class="fonfirm_table">
      <tr>
        <th>商品</th>
        <th>单价</th>
        <th>数量</th>
        <th>总价</th>
        <th>删除</th>
      </tr>
         <c:set var="sum_money" value="0"></c:set>
       <c:forEach items="${trolleys}" var="temp">
      <tr>
        <td>
          <div class="pic"><img src="${pageContext.request.contextPath}/statics${temp.image}" alt="" /></div>
          <div class="catorgay">${temp.name}</div>
        </td>
        <td>${temp.price}</td>
        <td><input type="text" name="quantity"  maxlength="4" size="4" value="${temp.number}" readonly></td>
        <td>${temp.price * temp.number}</td>
        <td>
          <a href="${pageContext.request.contextPath}/car/deleteTid?id=${temp.id}" class="delete">删除</a>
        </td>
        <c:set var="sum_money" value="${sum_money+(temp.price * temp.number) }"></c:set>
      </tr>
       </c:forEach>

    </table>
    <div class="clearfix">
      <ul class="confirm_q">
        <li class="confirm_q_f">商品总价：<span>￥</span><i>${sum_money}</i></li>
      </ul>
    </div>

    <div class="clearfix">
      <a href="${pageContext.request.contextPath}/order" target="_blank" class="tijiao">去结算</a>
    </div>
  </div>


  <!-- 底部 -->
  <footer class="sb_footer w980">
    <p class="top">
      <a href="#">联系我们</a>
      <span>|</span>
      <a href="otherinfo.asp?c=12">隐私条款</a>
      <span>|</span>
      <a href="otherinfo.asp?c=13">法律声明</a>
      &nbsp;&nbsp;
      <span>电话：+86(21)-51393838</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <span>地址：上海市奉贤区金汇镇工业路188号</span>
    </p>

    <p class="bottom">
      Copyright &copy; 2012 上海建设路桥机械设备有限公司 版权所有
      沪ICP备00226688号
      <!--<a href="http://www.free-web.cn">技术支持：网动力</a>-->
    </p>
  </footer>
  <script src="${pageContext.request.contextPath}/statics/localjs/jquery/jquery.min.js"></script>
  <script src="${pageContext.request.contextPath}/statics/localjs/swiper/swiper.jquery.min.js"></script>
  <script src="${pageContext.request.contextPath}/statics/js/common.js"></script>
  <script src="${pageContext.request.contextPath}/statics/js/index.js"></script>
</body>

</html>